home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #1 / Amiga Plus CD - 2000 - No. 1.iso / Tools / HD / SmartFileSystem / V1.58 / Sources / fs / nodes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-23  |  953 b   |  31 lines

  1. #include <exec/types.h>
  2. #include <libraries/iffparse.h>
  3. #include "blockstructure.h"
  4.  
  5. #define ROOTNODE   (1)
  6. #define RECYCLEDNODE (2)
  7.  
  8. /* a NODE is the number of a fsNode structure in a fsNodeContainer */
  9.  
  10. typedef unsigned long NODE;
  11.  
  12. /* Structures used by Node trees */
  13.  
  14. struct fsNode {
  15.   ULONG data;
  16. };
  17.  
  18. #define NODECONTAINER_ID         MAKE_ID('N','D','C',' ')
  19.  
  20. struct fsNodeContainer {
  21.   struct fsBlockHeader bheader;
  22.   NODE  nodenumber;        /* The Node number of the first Node in this block */
  23.   ULONG nodes;             /* The total number of Nodes per NodeIndexContainer
  24.                               or NodeIndexContainer from this point in the
  25.                               Node-tree.  If this is 1 it is a leaf container. */
  26.  
  27.   BLCKn node[0];           /* An array of NodeIndexContainers or NodeContainers
  28.                               depending on where this NodeIndexContainer is
  29.                               within the Node-tree. */
  30. };
  31.